package cn.dugcrs.org.mapper;

import cn.dugcrs.org.domain.Shop;
import cn.dugcrs.basic.mapper.BaseMapper;
import cn.dugcrs.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gubcog
 * @since 2022-05-04
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /* 
    * @Title: 根据名字查找店铺信息
    * @Description: TODO
    * @Author: Gubcog
    * @Version: 1.0
    * @Date:  2022/5/4 19:01  
    * @Parameters: * @param name
    * @Return cn.dugcrs.org.domain.Shop
    */
    Shop loadByName(String name);

    /*
    excel导入批量添加
     */
    void saveAll(List<Shop> shops);

    /*
     * 不同状态的店铺数量报表原始数据
     */
    List<ShopVo> loadEachars();
}
